-
Notifications
You must be signed in to change notification settings - Fork 4
Add flag for pretty-printing discovery JSON #13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@caxu-rh That said, pretty printing is a reasonable default, but I don't think you need to jump through the hoops to offer both here. [EDIT] Actually, I'll leave having this be configurable up to your discretion. If you want to leave it, pretty as a default makes sense to me (so make the flag |
|
Oh, and if you end up leaving it - feel free to add a config struct as you see fit. |
2f5d297 to
86556e8
Compare
|
Adjusted to flip the default behavior, forgot to add a config struct - expect another follow-up change. |
Signed-off-by: Caleb Xu <caxu@redhat.com>
86556e8 to
7d34dad
Compare
|
komish
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: caxu-rh, komish The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This PR addresses #9.
--formatwith accepting a template, e.g.{{ .Foo }}when I want a program (kubectl get,podman inspect) to give me some portion of the JSON output (maybe that could be useful too, but a separate feature).-r/--raw-outputflag instead or something similar).NewManifestJSONProcessorFn. I considered making this function take a new kind of config/opts struct instead (for future expansion), but I think it could wait for later if/when more options are possible.